package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Medicine;

public interface MedicineService {
	public void saveOrUpdateMedicine(Medicine medicine) throws Exception;
	public void saveMedicine(Medicine medicine) throws Exception;
	public void deleteMedicine(Medicine medicine) throws Exception;
	// 根据药品ID查询该药品
	public Medicine getMedicineByMedicineID(String medicineID) throws Exception;    
	// 查询所有药品
	public List<Medicine> getAllMedicineByCondition(String hql) throws Exception;
	// 查询所有药品，分页显示
	public List<Medicine> getAllMedicineByConditionByPage(String hql, int currentPage, int lineSize) throws Exception;
	// 药品数
	public int getCountOfMedicineByCondition(String hql) throws Exception;
}
